package com.dyw.provider.service;

import com.dyw.provider.mapper.UserMapper;
import com.example.dubboapi.entity.User;
import com.example.dubboapi.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Devil
 * @create 2022-03-04 21:09
 */
@Service
@DubboService
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User selectUserById(Integer id) {
        return userMapper.selectById(id);

    }
}
